﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MedicalSoft.OIS.Component.Model.Interface;
using System.Configuration;
using OISSetting;

namespace MedicalSoft.OIS.Component.Model
{
    public class DatabaseConfigModel : IDatabaseConfigModel
    {
#region Private Member
        private String serverName=string.Empty;
        private String userName=string.Empty;
        private String passWord=string.Empty;
#endregion
        public DatabaseConfigModel()
        {
            serverName = OISSettings.ServerName;
            userName = OISSettings.UserName;
            passWord = OISSettings.PassWord;
        }
        public string ServerName
        {
            get
            {
                return serverName;
            }
            set
            {
                serverName = value;
                OISSettings.ServerName = value;
            }
        }

        public string UserName
        {
            get
            {
                return userName;
            }
            set
            {
                userName = value;
                OISSettings.UserName = value;
            }
        }

        public string PassWord
        {
            get
            {
                return passWord;
            }
            set
            {
                passWord = value;
                OISSettings.PassWord = value;
            }
        }
    }
}
